package com.bruce.principle.openclose;

/**
 * Java课程打折实现类
 * Created by bruce on 2018/10/21 23:12
 */
public class JavaDiscountCourse2 extends JavaCourse {
    public JavaDiscountCourse2(Integer id, String name, Double price) {
        super(id, name, price);
    }

    public Double getDiscountPrice(){
        return super.getPrice() * 0.8;
    }

}
